package cn.lzj.org.service;

import cn.lzj.basic.util.PageList;
import cn.lzj.org.domain.Department;
import cn.lzj.org.query.DepartmentQuery;

import java.util.List;

public interface IDepartmentService {
    /**
     * 业务层service接口
     *
     */
    //方法进行企业化
    //添加方法由save变成add
    void add(Department departmentart);
    //修改方法
    void update(Department departmentart);
    //删除方法由delete变成remove
    void remove(Long id);
    //查询单条方法
    Department queryById(Long id);
    //查询所有方法
    List<Department> queryAll();
   //分页查询和高级查询
    PageList<Department> queryPage(DepartmentQuery query);

}
